package com.kristin.proxy.staticProxy;

import com.kristin.proxy.Animal;

import java.sql.SQLOutput;

/**
 * @ClassName ProxyAnimal
 * @Description TODO
 * @Author Kristin
 * @Date 2020/09/16 14:28:35
 * @Version 1.0.0
 */
public class ProxyAnimal implements Animal {

    private Animal animal;

    public ProxyAnimal(Animal animal){
        this.animal = animal;
    }

    public void call() {
        System.out.println("before...");
        animal.call();
        System.out.println("after...");
    }

}
